package com.dragon.modules.yuegou.model.busd;

import com.dragon.modules.yuegou.entity.busd.WithdrawConfigEntity;
import com.dragon.modules.yuegou.enums.busd.WithdrawConfigType;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 商圈提现设置模型类
 * 
 * @author pbuilder generated
 * @date 2019-07-30 16:36:57
 * @company sgy
 * @version 2.0
 * @see Length 长度限制
 * @see NotNull 对象非空
 * @see NotEmpty 字符串、集合、表、数组非空
 */
public class WithdrawConfig extends WithdrawConfigEntity {


	@ApiModelProperty("商圈名称")
	private String busdName;


	public String getBusdName() {
		return busdName;
	}


	public void setBusdName(String busdName) {
		this.busdName = busdName;
	}

	/**
	 * 构造一个空商圈提现设置模型对象
	 */
	public WithdrawConfig(){
		super();
	}
	
	/**
	 * 依据实体对象的信息构造一个商圈提现设置模型对象
	 * 
	 * @param entity 实体对象
	 */
	public WithdrawConfig(WithdrawConfigEntity entity){
		super(entity);
	}

	/**
	 * 依据其它对象的信息构造一个商圈提现设置模型对象
	 * 
	 * @param other 其它对象
	 */
	public WithdrawConfig(WithdrawConfig other){
		super(other);
	}


	@Override
	public String getId() {
    	return id;
    }

    /**
	 * 设置ID
	 * 
	 * @param id ID
	 * @return 当前对象
	 */
    public WithdrawConfig id(String id) {
    	this.id = id;
    	return this;
    }

	@Override
	public String getBusdId() {
    	return busdId;
    }

    /**
	 * 设置
	 * 
	 * @param busdId 
	 * @return 当前对象
	 */
    public WithdrawConfig busdId(String busdId) {
    	this.busdId = busdId;
    	return this;
    }

	@Override
	public Integer getWithdrawTimes() {
    	return withdrawTimes;
    }

    /**
	 * 设置每月提现次数；-1表示不限
	 * 
	 * @param withdrawTimes 每月提现次数；-1表示不限
	 * @return 当前对象
	 */
    public WithdrawConfig withdrawTimes(Integer withdrawTimes) {
    	this.withdrawTimes = withdrawTimes;
    	return this;
    }

	@Override
	public Integer getWithdrawDuration() {
    	return withdrawDuration;
    }

    /**
	 * 设置提现时间T+n
	 * 
	 * @param withdrawDuration 提现时间T+n
	 * @return 当前对象
	 */
    public WithdrawConfig withdrawDuration(Integer withdrawDuration) {
    	this.withdrawDuration = withdrawDuration;
    	return this;
    }

	@Override
	public BigDecimal getWithdrawMinAmount() {
    	return withdrawMinAmount;
    }

    /**
	 * 设置提现最小金额
	 * 
	 * @param withdrawMinAmount 提现最小金额
	 * @return 当前对象
	 */
    public WithdrawConfig withdrawMinAmount(BigDecimal withdrawMinAmount) {
    	this.withdrawMinAmount = withdrawMinAmount;
    	return this;
    }

	@Override
	public BigDecimal getWithdrawMaxAmount() {
    	return withdrawMaxAmount;
    }

    /**
	 * 设置提现最大金额
	 * 
	 * @param withdrawMaxAmount 提现最大金额
	 * @return 当前对象
	 */
    public WithdrawConfig withdrawMaxAmount(BigDecimal withdrawMaxAmount) {
    	this.withdrawMaxAmount = withdrawMaxAmount;
    	return this;
    }

	@Override
	public BigDecimal getFeeRatio() {
    	return feeRatio;
    }

    /**
	 * 设置手续费比例
	 * 
	 * @param feeRatio 手续费比例
	 * @return 当前对象
	 */
    public WithdrawConfig feeRatio(BigDecimal feeRatio) {
    	this.feeRatio = feeRatio;
    	return this;
    }

	@Override
	public WithdrawConfigType getType() {
    	return type;
    }

    /**
	 * 设置[枚举]服务费收取方式：0-按统一比例-UNITE、1-按业态收取-TYPE
	 * 
	 * @param type [枚举]服务费收取方式：0-按统一比例-UNITE、1-按业态收取-TYPE
	 * @return 当前对象
	 */
    public WithdrawConfig type(WithdrawConfigType type) {
    	this.type = type;
    	return this;
    }

	@Override
	public BigDecimal getServiceFeeRatio() {
    	return serviceFeeRatio;
    }

    /**
	 * 设置服务费比例
	 * 
	 * @param serviceFeeRatio 服务费比例
	 * @return 当前对象
	 */
    public WithdrawConfig serviceFeeRatio(BigDecimal serviceFeeRatio) {
    	this.serviceFeeRatio = serviceFeeRatio;
    	return this;
    }

	@Override
	public BigDecimal getMarginRatio() {
    	return marginRatio;
    }

    /**
	 * 设置保证金比例 如 5% 填写的是5
	 * 
	 * @param marginRatio 保证金比例 如 5% 填写的是5
	 * @return 当前对象
	 */
    public WithdrawConfig marginRatio(BigDecimal marginRatio) {
    	this.marginRatio = marginRatio;
    	return this;
    }

	@Override
	public String getCreatedBy() {
    	return createdBy;
    }

    /**
	 * 设置创建人ID
	 * 
	 * @param createdBy 创建人ID
	 * @return 当前对象
	 */
    public WithdrawConfig createdBy(String createdBy) {
    	this.createdBy = createdBy;
    	return this;
    }

	@Override
	public LocalDateTime getCreatedTime() {
    	return createdTime;
    }

    /**
	 * 设置创建时间
	 * 
	 * @param createdTime 创建时间
	 * @return 当前对象
	 */
    public WithdrawConfig createdTime(LocalDateTime createdTime) {
    	this.createdTime = createdTime;
    	return this;
    }

	@Override
	public String getModifiedBy() {
    	return modifiedBy;
    }

    /**
	 * 设置更新人ID
	 * 
	 * @param modifiedBy 更新人ID
	 * @return 当前对象
	 */
    public WithdrawConfig modifiedBy(String modifiedBy) {
    	this.modifiedBy = modifiedBy;
    	return this;
    }

	@Override
	public LocalDateTime getModifiedTime() {
    	return modifiedTime;
    }

    /**
	 * 设置更新时间
	 * 
	 * @param modifiedTime 更新时间
	 * @return 当前对象
	 */
    public WithdrawConfig modifiedTime(LocalDateTime modifiedTime) {
    	this.modifiedTime = modifiedTime;
    	return this;
    }

	@Override
	public Boolean getDel() {
    	return del;
    }

    /**
	 * 设置逻辑删除，1表示已删除,0表示未删除
	 * 
	 * @param del 逻辑删除，1表示已删除,0表示未删除
	 * @return 当前对象
	 */
    public WithdrawConfig del(Boolean del) {
    	this.del = del;
    	return this;
    }

	@Override
	public String getDelBy() {
    	return delBy;
    }

    /**
	 * 设置删除人ID
	 * 
	 * @param delBy 删除人ID
	 * @return 当前对象
	 */
    public WithdrawConfig delBy(String delBy) {
    	this.delBy = delBy;
    	return this;
    }

	@Override
	public LocalDateTime getDelTime() {
    	return delTime;
    }

    /**
	 * 设置删除时间
	 * 
	 * @param delTime 删除时间
	 * @return 当前对象
	 */
    public WithdrawConfig delTime(LocalDateTime delTime) {
    	this.delTime = delTime;
    	return this;
    }
}
